use of PV and TS diagram